#include <stdio.h>

int main(void)
{
    int cock = 0;
    int hen = 0;
    int chicks = 0;

    for(cock=0; cock<=100; cock++)
    {
        for(hen=0; hen<=100; hen++)
        {
            for(chicks=0; chicks<=99; chicks++)
            {
                if(cock + hen + chicks == 100 && 5 * cock + 3 * hen + chicks / 3 == 100 && chicks % 3 == 0)
                {
                    printf("公鸡:%d, 母鸡:%d, 雏鸡:%d\n", cock, hen, chicks);
                }
            }
        }
    }

    return 0;


}